﻿using AutoMapper;
using B.S.BasicData.API.Read.DTOS.Leave;
using B.S.BasicData.API.Read.DTOS.UserRoleMenu;
using B.S.BasicData.Domain.Entities.Leave;
using B.S.BasicData.Domain.Entities.UserRoleMenu;

namespace B.S.BasicData.API.Read
{
    public class MyAutoMapper : Profile
    {
        public MyAutoMapper()
        {

            CreateMap<UserDTO, UserModel>().ReverseMap();

            CreateMap<RoleDTO, RoleModel>().ReverseMap();

            CreateMap<UserRoleDTO, UserRoleModel>().ReverseMap();

            CreateMap<MenuDTO, MenuModel>().ReverseMap();
            CreateMap<RoleMenuDTO, RoleMenuModel>().ReverseMap();


            CreateMap<LeaveTypeDTO,LeaveTypeModel>().ReverseMap();

        }
    }
}
